<?php
/**
 * Created by ptmall
 * User : 河南邦耀网络科技有限公司
 * Date : 2020/9/10
 * Time : 16:09
 */

namespace app\api\controller;


use app\admin\model\general\Popup;
use app\common\controller\Api;
use think\Db;

class General extends Api
{
    protected $noNeedLogin = ['*'];

    public function _initialize()
    {
        parent::_initialize();
    }
    /**
     * @Explain :获取弹框
     * @Date : 2020/11/17 14:42
     */
    public function popInfo(){
        $type=$this->request->request('type',1);
        $result=Popup::get(['type'=>$type]);
        $result['desc']=explode(',',$result['desc']);
        $this->success('ok',$result);
    }



}
